package com.acme.exceptions;

public class NotEnoughFundsException extends BankException {
	private double amount;
	private String message;
	
	public NotEnoughFundsException(double amount) {
		this.amount = amount;
		this.message = "Can't withdraw " + amount + " funds!";
	}
	
	public String getMessage() {
		return this.message;
	}
	
	public String toString() {
		return "NotEnoughFundsException: " + this.getMessage();
	}
}
